package br.com.daniele.pdf;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;

public class Tabela {
	
	

	private Document document;
	
	public Tabela(Document document) {
		this.document = document;		
	}
	
	
	
	public static void main(String[] args) {
		
	
		
		
	}
	
	public  void gerarTabela() throws DocumentException{
		
		
		
		PdfPTable table = new PdfPTable(4);
		PdfPCell header = new PdfPCell(new Paragraph("Algumas Palavaras Reservadas do Java"));
		
		
		
		
		/*for (NfeProc nfeProc : nfeProcs) {
			
		}*/
		
		
		
		header.setColspan(4);
		table.addCell(header);
		
		table.addCell("abstract");
		table.addCell("extends");
		table.setHeaderRows(3);
		table.addCell("import");
		table.addCell("while");
		table.addCell("if");
		table.addCell("switchakjsdkjahsdkjHAsdh");
		
		table.setHeaderRows(1);		
		this.document.add(table);

		
	}

}
